package com.open4cn.simulator.config.controller;

import com.open4cn.simulator.device.ConnectorManager;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author yinxiaopeng
 * @version 1.0.0
 * @company 致景科技
 * @department 飞梭BU/研发
 * @description
 * @Email yinxiaopeng@zj.tech
 * @date 2022-06-06 20:20
 */
@RestController
@RequestMapping("manager/connector")
public class ConnectorManagerController {

    @GetMapping("/snapshot/{deviceId}")
    public Object snapshot(@PathVariable("deviceId") String deviceId) {
        return ConnectorManager.getInstance().snapshot(deviceId);
    }
}
